#include<iostream>
#include<string>
using namespace std;

const string& stringCom(const string& str1,const string& str2){
    return str1.length()>str2.length()?str1:str2;
}

int main(){
    const string&(*p1)(const string&,const string&)=stringCom;
    cout<<(p1)("hello","world")<<endl;
    cin.get();
}